import { MANAGER_ROLE_CODE, TENANT_ROLE_CODE, USER_ROLE_CODE } from '@/const'
export default {
  
  // 管理员服务数量
  managerServiceCount(state) {
    const { managerServiceList } = state
    return (managerServiceList || []).length
  },

  isManager(state) {
    return state.loginerRole === MANAGER_ROLE_CODE
  },

  isTenant(state) {
    return state.loginerRole === TENANT_ROLE_CODE
  },

  isUser(state) {
    return state.loginerRole === USER_ROLE_CODE
  },

}
